<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;


class UserFaces extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('user_faces',function (Blueprint $table){
            $table->engine='InnoDB';
            $table->increments('id');
            $table->integer('x_uid');
            $table->integer('attach_id');
            $table->char('face_token');
            $table->float('value',6,2); // 刷脸值
            $table->float('similar',6,2); // 类似值
            $table->integer('star');  // 星数量
            $table->integer('type');  //  上传的类型 1为百万系统 2为h5系统
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
       Schema::drop('user_faces');
    }
}
